export interface chouq {
  code: number;
  data: Record<string, any>;
  text: string
}

export default defineEventHandler(async (event) => {
  const { apiServer } = useRuntimeConfig(event)
  const repo = await $fetch<chouq>('/api/za/chouq.php', {
    baseURL: apiServer
  })

  return repo
})
